package itheima.d04;

import cn.hutool.core.io.FileUtil;
import cn.hutool.core.io.IoUtil;

import java.io.FileInputStream;
import java.io.FileNotFoundException;

public class Test {
    public static void main(String[] args) throws FileNotFoundException {
        FileUtil.copy("D:\\a.txt",
                "D:\\b.txt", true);


        IoUtil.copy(new FileInputStream("D:\\a.txt"),
                FileUtil.getOutputStream("D:\\b.txt"));
    }
}
